home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Telnet 2.6.1d1 4⁄26⁄94 Folder / source / network / MacTCP / MyMacTCPstructures.h < prev    next >
Text File  |  1993-12-16  |  975b  |  29 lines

  1. #define    noError    0
  2. #define TCPBUFSIZ    (1024*8)
  3. #define    MAX_FDS_ELEMS    32
  4. #define    MAX_SWDS_ELEMS    16
  5.  
  6. typedef struct exfds {
  7.     short        inuse;                    /* Is this being used? */
  8.     wdsEntry    fds;                    /* The real data */
  9.     } exfds;
  10.     
  11. typedef struct StreamRec {                // 470 bytes
  12.     StreamPtr    stream;                    /* Apple's lovely Stream Pointer */
  13.     char        *buffer;                /* Where the immovable TCP buffer is */
  14.     short        push;                    /* TRUE if we should push next data block */
  15.     char        *sbuffer;                /* Where the send buffer is */
  16.     wdsEntry    fds[MAX_FDS_ELEMS];        /* Free Data Structure list */
  17.     exfds        exFDS[MAX_FDS_ELEMS];    /* exFDS entries */
  18.     short        maxFDSused;                /* Max of the FDS's that have been used */
  19. //    int            mseg;                    /* BYU 2.4.15 */
  20. //    int            service;                /* BYU 2.4.15 */
  21.     short        portType;                /* UDATA, PDATA, PFTP, CNXN, NO_TYPE */
  22.     Ptr            edata;                    /* Ptr to Encryption data */
  23.     } StreamRec, *StreamRPtr;
  24.  
  25. typedef struct MyTCPpb {                // 106 Bytes
  26.     TCPiopb        pb;
  27.     long        SavedA5;
  28.     } MyTCPpb, *MyTCPpbPtr;
  29.